<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        /* 
        类选择器 
        先定义样式
        下边使用样式
        */
        .red {
            color: red;
        }

        .shawujing {
            color: green;
        }

        .bajie {
            color: pink;
        }

        .tangsanzang {
            color: purple;
        }
    </style>
</head>

<body>
    <div class="red">孙悟空</div>
    <div class="sahwujing">沙悟净</div>
    <div class="bajie">八戒</div>
    <div class="tangsanzang">唐三藏</div>
</body>

</html>